package com.youyunsoft.commons;

public class Config {


    //    http://zyd.njbx.info/yuncai/v0.5

    public static final boolean IS_DEV_VERSION = BuildConfig.DEV;


    //正式地址
    private static final String RELEASE_HOST = "app.nanjiebeixiang.com";
    public static final Integer RELEASE_PORT = null;// release port,null代表hpps下使用系统默认端口号


    //测试地址
    public static final String DEV_HOST = "app.njbx.info";
    public static final Integer DEV_PORT = null;// test port

    private static final String SERVER_VERSION = "";
    private static final String SERVER_PATH = "sorting";
    private static final String PROTOCOL = IS_DEV_VERSION ? "https" : "https";// HTTP or HTTPS


    private static final String HOST = IS_DEV_VERSION ? DEV_HOST : RELEASE_HOST;
    public static final Integer PORT = IS_DEV_VERSION ? DEV_PORT : RELEASE_PORT;

    public static final String SERVER = PORT != null ? String.format("%s://%s:%s/%s/", PROTOCOL, HOST, PORT, SERVER_PATH)
            : String.format("%s://%s/%s/", PROTOCOL, HOST, SERVER_PATH);

//        public static final String SERVER="http://192.168.50.88:9066/";//胖子本机

//        public static final String SERVER="http://192.168.50.48:8080/";//张宇本机


}
